Temperature sensor circuit and system

ABSTRACT

A method and system for sensing the temperature of an integrated circuit are presented. The method compares a first current that is proportional to a temperature reading of the integrated circuit to a reference current. While the first current is greater than the reference current, a counter is incremented, and the reference current is increased in response to incrementing the counter. A system for sensing the temperature of an integrated circuit includes a first current source providing a source current to a node. The first current source is based on an input from a proportional to absolute temperature device. The system also includes a second current source providing a sink current to the node, with the amount of sink current being based on an input from a digital control module. The system also includes a comparator coupled to the node to provide a comparator signal that indicates a relationship between the source current and the sink current.

FIELD OF THE DISCLOSURE

The disclosure relates to a system and method for sensing temperature.

BACKGROUND

The performance of many integrated circuit components varies according to the temperature of the component. For example, dynamic memory modules, such as DRAM, are refreshed at a higher rate as the temperature of the module increases. However, refreshing a dynamic memory module at a predetermined high rate can waste power if the rate is not demanded by the memory module temperature.

Furthermore, the temperature of an integrated circuit may vary over time. Moreover, because power usage is often at a premium in an integrated circuit, it is beneficial if a system or method for measuring the temperature conserves power.

Accordingly, there is a need for an improved low power system and method that is capable of measuring the temperature in an integrated circuit.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of an integrated circuit incorporating a temperature sensor;

FIG. 2 is a block diagram of an embodiment of a temperature sensor;

FIG. 3 is a block diagram of an embodiment of a digital control module for use in a temperature sensor;

FIG. 4 is a flow chart illustrating a method of sensing the temperature of an integrated circuit.

FIG. 5 is a block diagram of a variable reference current source for use in a temperature sensor.

DETAILED DESCRIPTION OF THE DRAWINGS

A method and system of sensing the temperature of an integrated circuit are presented. In a particular embodiment, the method compares a first current that is proportional to the temperature reading of an integrated circuit to a reference current. While the first current is greater than the reference current, a counter is incremented, and the reference current is increased in response to incrementing the counter. A digital code based on the sensed temperature may be provided to other components of the integrated circuit.

FIG. 1 is a block diagram of an integrated circuit 100 incorporating a temperature sensor. The integrated circuit 100 includes a temperature sensor 102, a memory refresh circuit 104, and a digital module 106. In a particular embodiment, the temperature sensor 102 is a low power circuit that uses an average of less than 10 microwatts of power.

The temperature sensor 102 measures the temperature of the integrated circuit 100 and provides a digital temperature code (labeled TEMP CODE 1) based on the measured temperature to the memory refresh circuit 104. In a particular embodiment, the memory refresh circuit 104 determines a refresh rate for a dynamic memory module based on this digital temperature code. In the illustrated example, the temperature sensor 102 sends a second digital temperature code (labeled TEMP CODE 2) to the digital module 106. The digital module 106 may be any digital circuitry on the integrated circuit 100, including a microprocessor, data register, digital logic or other digital module. In a particular embodiment, the digital module 106 uses the second digital temperature code in connection with the performance characteristics of the integrated circuit. The second digital temperature code can differ in size from the first digital temperature code. In a particular embodiment, the first digital temperature code is 3 bits and the second digital temperature code is 4 bits.

Referring to FIG. 2, a block diagram of a particular embodiment of the temperature sensor 102 is illustrated. The temperature sensor 102 includes a proportional to absolute temperature (PTAT) device 200. The PTAT device 200 produces an output that is proportional to the temperature of the integrated circuit 100. This output is coupled to a current source 202. The current source 202 produces a current at an output level that is based on the output of the PTAT device 200. Accordingly, the PTAT device 200 and the current source 202 in combination produce a current that is proportional to a measured temperature of the integrated circuit 100.

The temperature sensor 102 further includes a variable reference current source 208. The variable reference current source 208 is coupled to a digital control module 210. The digital control module 210 controls the level of current produced by the variable reference current source 208.

The temperature based current produced by the current source 202 is provided as a source current to a node 216. The current produced by the variable reference current source 208 is provided as a sink current to the node 216. A comparator 204 is coupled to the node 216 and the current source 202 to provide a comparator signal that indicates a relationship between the source current and the sink current. The comparator signal produced by the comparator 204 remains in a first state (herein referred to as a READ state) when the level of current produced by the current source 202 is greater than the level of current produced by the variable reference current source 208. The comparator signal produced by the comparator 204 is in a second state (herein referred to as a COMPLETE state) when the level of current produced by the current source 202 is less than the level of the variable reference current source 208. Thus the comparator 204 transitions from a READ state to a COMPLETE state to indicate a substantial match between the outputs of the current source 202 and the variable reference current source 208.

An inverter 206 is coupled to the comparator 204 to receive the comparator signal and produce an inverted comparator signal output. The inverted comparator signal output is coupled to an input of the digital control module 210.

The digital control module 210 is able to control the level of current produced by the variable reference current source 208. When the output of the comparator 204 transitions from the READ state to the COMPLETE state, the digital control module 210 completes a temperature measurement and provides first and second digital temperature codes as outputs TEMP CODE 1 and TEMP CODE 2. In a particular embodiment, the digital temperature codes are based on the value of a digital counter that is stopped upon the transition of the comparator 204 from the READ state to the COMPLETE state.

The digital control module 210 has a first clock input coupled to the clock 212 and a second clock input coupled to the clock 214. In response to the clock 212, the digital control module 210 provides a start signal to the PTAT device 200 and starts a temperature reading. In a particular embodiment, the digital control module 210 is in a powered down state prior to providing the start signal and returns to the powered down state after performing a temperature measurement and storing a temperature code.

The digital control module 210 responds to the output of the clock 212 to generate the digital temperature codes. The clock 214 can be divided and a divided clock can drive digital elements within the digital control module 210 to conduct the temperature measurement. In a particular embodiment, the clock 212 operates at a frequency of 10 Hz and the clock 214 operates at a rate of 24 MHz.

Referring to FIG. 3, a particular embodiment of the digital control module 210 is illustrated. The digital control module 210 includes a counter 300 and a start logic module 314. The start logic module 314 receives a signal from the clock 212 indicating that a temperature reading should start. The start logic module 314 then sends a signal to the PTAT device 200 to generate its output and sends a signal to the counter 300 to reset and begin counting. The counter 300 is coupled to a clock divider 312 that is coupled to the clock 214 and divides the output of the clock 214 to an appropriate frequency to drive operation of the counter 300.

The counter 300 is further coupled to the output of the inverter 206 that transmits a feedback signal derived from the output of the comparator 204. While the output of the comparator 204 is in the READ state, the counter 300 continues counting, at a rate determined by the output of the clock divider 312. In response to the output of the comparator 204 transitioning to a COMPLETE state, the counter 300 is stopped.

The counter 300 is coupled to a plurality of memory latch devices such as the latches 302, 304, 306 and 308 illustrated. In a particular embodiment, the memory latch devices 302, 304, 306 and 308 are flip-flops. After the counter 300 has stopped after performing a temperature measurement, the counter 300 output is stored in the flip-flops 302, 304, 306 and 308.

The digital control module 210 further includes a counter decoder 310. The counter decoder 310 has an input coupled to the output of inverter 206 and is responsive to the output of the counter 300. The counter decoder 310 is further coupled to the variable reference current source 208. If the output of the comparator 204 is in the READ state, the counter decoder 310 sends a signal to the variable reference current source 208, incrementally increasing the level of current produced by the variable reference current source 208 in a stepwise manner. The current level of the variable reference current source 208 may be increased by adding individual current sources to a current summing node. The current level of the variable reference current source 208 is incremented in a step by step manner in response to each increment of the counter 300 until the comparator 204 detects a substantial match between the current source 202 and the counter controlled variable reference current source 208. Upon detecting a match, the counter 300 is stopped and the counter value is stored as a digital code.

In the event that the integrated circuit 100 is in an extremely low or high temperature state, the counter decoder 310 may increase the output of the variable reference current source 208 to a maximum level. If the counter decoder 310 determines that this maximum level has been reached and the counter 300 has not stopped counting, the counter decoder 310 can output a digital temperature code to the counter 300. The counter 300 can then output this digital temperature code to memory latch devices 302, 304, 306 and 308. In a particular embodiment, this digital temperature code is selected from an overflow temperature code or an underflow temperature code depending on the amount of current generated by the current source 202.

Referring to FIG. 4, a flow chart of a particular embodiment of a method for sensing temperature in an integrated circuit is illustrated. FIG. 4 begins with step 400, where a start signal is received to start a temperature measurement. After the start signal has been received, a counter is started at step 402. At step 404, the current level based on a PTAT reference is compared to the current level of a variable current source controlled by the counter. If the current level of the variable current source is less than the current level based on a PTAT reference, the counter is incremented at step 405 and the variable reference current is increased at step 406. The current comparison step 404 is then repeated.

If, at step 404, the comparison indicates that the current level produced by the variable current source is greater than the current based on the PTAT reference, the counter is stopped, at step 408. The stopped counter value is then stored at step 410. In a particular embodiment, the counter is a 4 bit counter and the three least significant bits are provided as a first digital code and all four bits are provided as a second digital code. The digital codes are determined at step 412. In a particular embodiment, the codes are determined according to the following table:

Temperature range (degrees Celsius) 4 Bit Digital Code Less than −40 0000 −40 to −30 0001 −30 to −20 0010 −20 to −10 0011 −10 to 0    0100  0 to 15 0101 15 to 25 0110 25 to 35 0111 35 to 45 1000 45 to 55 1001 55 to 70 1010 70 to 85 1011 85 to 95 1100  95 to 105 1101 105 to 115 1110 115 to 125 1111

In a particular embodiment, at step 414 the first digital code is provided to a memory refresh circuit and the second digital code is provided to a digital module at step 416.

Referring to FIG. 5, a particular embodiment of the variable reference current source 208 is illustrated. The variable reference current source 208 includes multiple current sources such as current source elements 1-N 500, 502, 504, and 506 that are connected to switches 1-N 508, 510, 512 and 514, respectively. The switches 508, 510, 512 and 514 are each coupled to a current summing node 516. Accordingly, if the first switch 508 is closed, the current produced by the first current source element 500 is added to the current available at the current summing node 516. In this manner, the current source elements 500, 502, 504 and 506 may be selectively summed together in an incremental manner.

The switches 508, 510, 512 and 514 are controlled by the digital control module 210. The counter decoder 310 is coupled to the switches 508, 510, 512 and 514 through a plurality of control signals. As the counter 300 moves from its initial state to a final state through a step by step digital count sequence, the counter decoder 310 selectively applies additional control signals to close the switches 508, 510, 512 and 514 and activate the current sources 500, 502, 504 and 506, incrementally increasing the total current produced by the variable reference current source 208 corresponding to the digital count sequence provided by the counter 300.

After a temperature reading is complete, the digital control module 210 can open the switches 508, 510, 512 and 514, so that the variable reference current source 208 is in a proper initial state for subsequent temperature measurements. While only four current source elements 500, 502, 504 and 506 and four switches 508, 510, 512 and 514 have been shown for illustrative purposes, it should be understood that many additional current sources and switches may be used and controlled to provide greater resolution in temperature measurement and/or a wider range of temperature measurement.

The above disclosed subject matter is to be considered illustrative, and not restrictive, and the appended claims are intended to cover all such modifications, enhancements, and other embodiments which fall within the true spirit and scope of the present invention. Thus, to the maximum extent allowed by law, the scope of the present invention is to be determined by the broadest permissible interpretation of the following claims and their equivalents, and shall not be restricted or limited by the foregoing detailed description. 

1. A temperature sensor circuit comprising: a first current source providing a source current to a node based on an input from a proportional to absolute temperature device; a second current source providing a sink current from the node, the amount of sink current based on a digital input from a digital control module; and a comparator coupled to the node to provide a comparator signal that indicates a relationship between the source current and the sink current.
 2. The temperature sensor circuit of claim 1, further comprising an inverter coupled to the comparator to receive the comparator signal and to produce an inverted comparator signal output.
 3. The temperature sensor circuit of claim 2, wherein the inverted comparator signal output is coupled to an input to the digital control module.
 4. The temperature sensor circuit of claim 1, wherein the digital control module has a first clock input and a second clock input.
 5. The temperature sensor circuit of claim 4, wherein the digital control module provides a first digital temperature code output that indicates one of a plurality of temperature ranges.
 6. The temperature sensor circuit of claim 5, wherein the digital control module provides a second digital temperature code output that indicates one of a plurality of temperature ranges.
 7. The temperature sensor circuit of claim 6, wherein the first digital temperature code output is a three bit value that identifies one of eight temperature ranges and the second digital temperature code output is a four bit value that identifies one of sixteen temperature ranges.
 8. The temperature sensor circuit of claim 6, wherein the first digital temperature code output is provided to a memory refresh circuit and wherein the second digital temperature code output is provided to a digital module, and wherein the memory refresh circuit and the digital module are within the same semiconductor device as the temperature sensor circuit.
 9. The temperature sensor circuit of claim 1, wherein the second current source includes a plurality of current source elements that may be selectively summed together and wherein the digital control module includes a plurality of control signal outputs coupled to the plurality of current source elements.
 10. The temperature sensor circuit of claim 9, wherein the digital control module includes a counter and a counter decoder coupled to the counter, the counter decoder coupled to each of the plurality of control signals, wherein as the counter moves from an initial state to a final state though a step by step digital count sequence, the counter decoder sequentially applies additional ones of the control signals to activate additional current source elements, to incrementally increase a total current provided by the second current source in a step by step manner corresponding to the digital count sequence provided by the counter.
 11. The temperature sensor circuit of claim 10, wherein the counter is stopped in response to a feedback signal derived from the comparator signal output.
 12. The temperature sensor circuit of claim 11, wherein an output of the counter after the counter is stopped is stored in a memory latch device.
 13. The temperature sensor circuit of claim 12, wherein the memory latch device is a plurality of flip-flops.
 14. The temperature sensor circuit of claim 12, wherein first and second output codes are determined based on the output of the counter stored in the memory latch device.
 15. The temperature sensor circuit of claim 14, wherein the first and second output codes are selected from a high temperature code and a low temperature code based on an output of the first current source.
 16. The temperature sensor circuit of claim 10, wherein the digital control module provides a start signal to the proportional to absolute temperature device and provides a start signal to the counter.
 17. The temperature sensor circuit of claim 16, wherein the digital control module is in a powered down state prior to providing the start signal.
 18. The temperature sensor circuit of claim 17, wherein the digital control module returns to the powered down state after performing a temperature measurement and storing a temperature code.
 19. The temperature sensor circuit of claim 17, wherein the start signal is provided in response to a first clock input.
 20. The temperature sensor circuit of claim 19, wherein the counter is incremented in response to a signal derived from a second clock input.
 21. The temperature sensor circuit of claim 20, wherein the first clock input operates at a frequency of 10 Hz and the second clock input operates at a higher frequency.
 22. The temperature sensor circuit of claim 1, wherein the temperature sensor circuit uses an average of less than 10 microwatts of power.
 23. The temperature sensor circuit of claim 1, wherein the comparator output changes from a first state to a second state to indicate a substantial match between the outputs of the first current source and the second current source.
 24. A semiconductor device comprising: a digital logic module including a control circuit having a first temperature input; a dynamic memory including a refresh rate control circuit having a second temperature input; a temperature sensor providing a first temperature code to be applied to the first temperature input and a second temperature code to be applied to the second temperature input, the temperature sensor comprising: a first current source that provides current proportional to a measured temperature; a reference current source; a comparator responsive to the first current source and the reference current source; and a control module including a digital counter, a first input of the control module coupled to an output of the comparator, wherein the control module increments the digital counter and increases the current provided by the reference current source based on the comparator output.
 25. The semiconductor device of claim 24, wherein the control module increments the digital counter and increases the current provided by the reference current source when the comparator output indicates that the first current source is less than the reference current source.
 26. The semiconductor device of claim 24, wherein the temperature sensor enters a powered up state in response to a first clock signal.
 27. The semiconductor device of claim 26, wherein the temperature sensor enters a powered down state after providing the first and second temperature codes. 